//
//  PurchaseInforFootView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/3.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "PurchaseInforFootView.h"

@implementation PurchaseInforFootView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        GLGWImageView * noDataImageView = [[GLGWImageView alloc] initWithImageName:@"icon_zanwushuju" inSuperView:self];
//        noDataImageView.backgroundColor = kRandomColor;
        [noDataImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.top.equalTo(self.mas_top).offset(kHeightProportion_In_iPhoneTriploid(13));
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(100)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(72)));
        }];
        //
        GLGWLabel * bottomLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        bottomLabel.text = @"暂无数据";
        [bottomLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(noDataImageView);
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
            make.top.equalTo(noDataImageView.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(20));
        }];
    }
    return self;
}

@end
